package tr.helper.repository;

import java.util.List;

/**
 * tr-service
 *
 * @author MrYe
 * @date 2022-01-14 17:05
 */
public interface DataRepository<T> {

    int insertSelective(T model);

    int deleteByPrimaryKey(Long id);

    int updateByPrimaryKey(T model, Long id);

    T select(T model) throws IllegalAccessException, InstantiationException;

    List<T> selectAll(T model);

}
